package com.StarStudio.Service;

import com.ruoyi.common.core.Entity.PanicBuyingGoods;
import com.ruoyi.common.core.Entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
@FeignClient(value = "PanicBuyingGoods")
public interface PanicBuyingGoodsService {

    @PutMapping("/put")
    Result updatePanicBuyingGoods(@RequestBody PanicBuyingGoods panicBuyingGoods);

    @RequestMapping("/findByGoodsId/{id}")
    PanicBuyingGoods findByGoods_id(@PathVariable(value = "id") long id);

    @RequestMapping("/PanicBuyingGoodsList")
    List<PanicBuyingGoods> PanicBuyingGoodsList();

    @RequestMapping("/findByStatus/{status}")
    List<PanicBuyingGoods> findByStatus(@PathVariable(value = "status") int status);
}
